import { request } from '@/utils/request.js'

export default {
    showSelect: [
        { label: '默认', value: 1 },
        { label: '成功', value: 2} ,
        { label: "警告", value: 3 },
        { label: '危险', value: 4 },
    ],
    /**
     * 获取列表
     * @returns
     */
    list (params = {}) {
        return request({
            url: 'prm/sysTag/list',
            method: 'get',
            params
        })
    },
    add (params = {}) {
        return request({
            url: 'prm/sysTag/add',
            method: 'post',
            data:params
        })
    },
    update (id,params = {}) {
        params['id'] = id;
        return request({
            url: 'prm/sysTag/update',
            method: 'post',
            data:params
        })
    },
    delete(params = {}){
        return request({
            url: 'prm/sysTag/delete',
            method: 'post',
            data:params
        })
    },
}
